#include"head.h"

namespace pers
{
	void getperson(Person& person)
	{
		cout << "last name:";
		cin >> person.lastname;
		cout << "first name:";
		cin >> person.firstname;
	}
	void showperson(const Person& person)
	{
		cout << person.lastname << " " << person.firstname << endl;
	}
}

namespace debt
{
	void getdebt(Debt& debts)
	{
		getperson(debts.name);
		cout << "Debts:";
		cin >> debts.money;
	}
	void showdebt(const Debt& debts)
	{
		showperson(debts.name);
		cout << "Debts:" << debts.money << endl;
	}
}
